import request from "@/utils/request.js";

//根据城市id查询景点
export const selectAllAttractions=()=>request.get('/yy/dq/select-all-attractions')
//根据城市id查询景点
export const selectAttractionsByCityId=(cityId)=>request.get(`/yy/jd/selectAttractionsByCityId?cityId=${cityId}`)

export const selectAttractionsByPage=(start, pageSize, address, topic, star,attName)=>request.get(`/yy/jd/selectAttractionsByPage?start=${start}&pageSize=${pageSize}&address=${address}&topic=${topic}&star=${star}&attName=${attName}`)

//查询全部主题
export const selectAllTopic=()=>request.get('/yy/zt/list')


//查询全部星级
export const selectAllStar=()=>request.get('/yy/xj/list')

export const selectAttractionsById=(id)=>request.get(`/yy/jd/selectAttractionsById?id=${id}`)

export const insertHistory=(data)=>request.post('/insert-history',data)